package com.longrise.android.byjk.plugins.course.pay;

import com.longrise.common.base.BasePresenter;
import com.longrise.common.base.BaseView;

import java.util.ArrayList;

/**
 * Created by callxkj on 2017/11/19.
 *  支付的 contract 类
 */

public interface PaymentContract {

    interface View extends BaseView{
         public void  showWxPayErrorDialog();

         public void showAliPayErrorDialog();

        public void showPaySuccess();

        public void showNotBackWaitDialog();

        public void dismissNotBackDialog();

        public void showPayError();
    }

    abstract class Presenter extends BasePresenter<View>{

        public abstract void openLotsOfTrain(ArrayList<String> courseids);

        public abstract void toWxpay(int buytype);

        public abstract void toAlipay(int buytype);

        public abstract void toConfirmPayresult(String toConfirmPayresult);
    }

}
